<script type="text/javascript">window["BASE_URL"]="${cxt}";</script>
<link rel="stylesheet" href="${cxt}_upload/uploadify.css" type="text/css">
<link rel="stylesheet" href="${valCxt}art-dialog/css/ui-dialog.css"  type="text/css">
<!-- script type="text/javascript" src="${valCxt}jquery/dist/jquery.min.js"></script -->
<script type="text/javascript" src="${valCxt}art-dialog/js/dialog-min.js"></script>
<script type="text/javascript" src="${cxt}_upload/jquery.uploadify.js"></script>
<script type="text/javascript" src="${cxt}_upload/util/fileupload.js"></script>
<script type="text/javascript">
	//加载上传组件
	$(function(){
		fileupload.init({
				waterButton:${waterButton!"false"},
				fileSizeLimit:${fileSizeLimit!"1024"},
				multi:${isMulti!"false"},
				width:520,
				heigth:300			
		});
		<#if fnCallBack?exists>
			<#list fnCallBack as fnCall>
				$("#${fnCall.targetId}").off("click").on("click",function(){
					fileupload.open('${cxt}_native_/uploadfile?upfmt=${fnCall.upfmt!}&uploadType=${fnCall.type?c}',${fnCall.callback});
				});
			</#list>
		</#if>
	});
</script>